# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=py3-subunit
pkgver=1.4.0
pkgrel=2
pkgdesc="Python implementation of subunit test streaming protocol"
url="https://launchpad.net/subunit"
arch="noarch"
license="Apache-2.0 OR BSD-3-Clause"
options="!check" # Test suite issues
depends="python3 py3-extras py3-testtools"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/python-subunit/python-subunit-$pkgver.tar.gz"
builddir="$srcdir/python-subunit-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3.8/site-packages/subunit/tests
}

sha512sums="7f8ebf1cfdd7ff22bfd68367cb90dd75e7f3b5f7da71830b304225905e1799ad1ec8f0d41f5f98895c831dc10fe77229137a472b8e8e57ea84c05c66694a5b5b  python-subunit-1.4.0.tar.gz"
